package com.qys.wallet.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 地址出入账记录
 * </p>
 *
 * @author
 * @since 2023-09-25
 */
@Getter
@Setter
@TableName("wallet_coin_record")
@Schema(name = "WalletCoinRecord", description = "地址出入账记录")
public class WalletCoinRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "地址出入账记录id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @Schema(description = "合约地址")
    private String address;

    @Schema(description = "币种名")
    private String coinName;

    @Schema(description = "提现数量")
    private BigDecimal amount;

    @Schema(description = "手续费")
    private BigDecimal fee;

    @Schema(description = "提现总额")
    private BigDecimal total;

    @Schema(description = "交易ID")
    private String tradeId;

    @Schema(description = "txid")
    private String txid;

    @Schema(description = "生成时间（时间戳）")
    private Long createTime;

    @Schema(description = "出入账类型  1：充值  2：提现")
    private Byte incomeType;
}
